package com.cg.service;

import com.cg.dto.AddLikeDTO;
import com.cg.dto.AddQuestionDTO;
import com.cg.dto.UpdateQuestionDTO;
import com.cg.entity.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cg.result.R;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 加
 * @since 2025-01-17
 */
public interface IQuestionService extends IService<Question> {

    R addQuestion(AddQuestionDTO addQuestionDTO);

    R<List<Question>> showQuestion();

    R getQuestionDetail(Long questionId);

    R updateQuestion(UpdateQuestionDTO updateQuestionDTO);

    R deleteQuestion(Long questionId);

    String selectQuestionById(Long questionId);

    Question selectQuestionById2(Long questionId);

    R addLike(AddLikeDTO addLikeDTO);

    String selectContentById(Long questionId);
}
